Unable to set up the source code control menus correctly for this project.

This error has the following cause and solution: